import sys

from PySide2.QtGui import *
from PySide2.QtCore import *
from PySide2.QtWidgets import *

class Name(QWidget):
    def __init__(self):
        super(Name, self).__init__()
        self.setWindowTitle('窗口标题')

        self.lay = QHBoxLayout()
        self.left = QVBoxLayout()
        self.left.setAlignment(Qt.AlignTop)
        self.left.setContentsMargins(0,20,0,0)
        self.left.setSpacing(15)
        self.name0 = QLabel('Rig')
        self.name1 = QLabel('Ani')
        self.name2 = QLabel('Mod')
        self.name3 = QLabel('Re')
        self.name4 = QLabel('Mp')
        self.left.addWidget(self.name0)
        self.left.addWidget(self.name1)
        self.left.addWidget(self.name2)
        self.left.addWidget(self.name3)
        self.left.addWidget(self.name4)

        self.right = QVBoxLayout()
        self.right.setAlignment(Qt.AlignTop)
        self.name_v0 = QLabel('Rg')
        self.name_v1 = QLabel('Ai')
        self.name_v2 = QLabel('Md')
        self.name_v3 = QLabel('MM')
        self.right.addWidget(self.name_v0)
        self.right.addWidget(self.name_v1)
        self.right.addWidget(self.name_v2)
        self.right.addWidget(self.name_v3)
        # self.right.addWidget(self.name_v1)


        self.lay.addLayout(self.left)
        self.lay.addLayout(self.right)

        self.setLayout(self.lay)





if __name__ == '__main__':
    app = QApplication(sys.argv)
    name = Name()
    name.show()
    sys.exit(app.exec_())